<?php

use yii\helpers\Html;
use yii\widgets\DetailView;


$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => '邮轮管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="cruise-view">

    <h2 class="page-header"><?= Html::encode($this->title) ?>
        <p class="pull-right"> 
            <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
            <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-danger']) ?>
        </p>
    </h2>


    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            //'id',
            'name',
            'en_name',
            'weight:decimal',
            'num:decimal',
            'length',
            'width',
            'room:decimal',
            'ceil',
            'speed',
            'first',
            'code',
            'desc',
            [
                'attribute' => 'status',
                'value' => Yii::$app->params['status'][$model->status],
            ],
            //'user_id',
            'created_at:datetime',
            'updated_at',
        ],
    ]) ?>

</div>
